<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<HTML><HEAD><TITLE>火车订票系统</TITLE>
<META content="火车订票系统" name=keyword>
<META content="火车订票系统" name=description>
<link rel="stylesheet" href="image/CSS.CSS" type="text/css">
<script language=javascript>
function check()
{               
  if((document.r.userid.value==null)||(document.r.userid.value.length==0))
  {   
    alert("登录名为空，请重新输入");
    document.r.userid.focus();
    return false;
  }
    if((document.r.username.value==null)||(document.r.username.value.length==0))
  {   
    alert("姓名为空，请重新输入");
    document.r.username.focus();
    return false;
  }
    if((document.r.password.value==null)||(document.r.password.value.length==0))
  {   
    alert("密码为空，请重新输入");
    document.r.password.focus();
    return false;
  }
    if((document.r.id.value==null)||(document.r.id.value.length==0))
  {   
    alert("身份证号为空，请重新输入");
    document.r.id.focus();
    return false;
  }
      if((document.r.email.value==null)||(document.r.email.value.length==0))
  {   
    alert("电子邮箱为空，请重新输入");
    document.r.email.focus();
    return false;
  }
      if((document.r.address.value==null)||(document.r.address.value.length==0))
  {   
    alert("联系地址为空，请重新输入");
    document.r.address.focus();
    return false;
  }
      if((document.r.phone.value==null)||(document.r.phone.value.length==0))
  {   
    alert("电话为空，请重新输入");
    document.r.phone.focus();
    return false;
  }
  return true;
}
</script>
</HEAD>
<jsp:useBean id="register" scope="request" class="com.swjd.bean.register"></jsp:useBean>
<BODY BGCOLOR=#ffccCC leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--Logo|--开始-->
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" height="330">
  <tr> 
    <td colspan="3" height="90"><img src="image/index_top1.gif" width="778" height="90"></td>
  </tr>
  <tr> 
    <td height="160" width="518" background="image/index_top2.gif">
      <table border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
          <td> 
            <div align="center"><font color="#000000"> <b><font size="7"><font color="#000000">火车订票系统</font>

 
              </font></b></font></div>
          </td>
        </tr>
        
      </table>
    </td>
    <td height="160" width="210" background="image/01.gif"><img src="image/index_pic.gif" width="220" height="160"></td>
    <td height="160" width="40"><img src="image/index_top3.gif" width="40" height="160"></td>
  </tr>
  <tr> 
    <td colspan="3" height="80"><img src="image/index_top4.gif" width="778" height="80"></td>
  </tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
  <tr> 
    <td valign="top"> 
      <table width="280" border="0" cellspacing="0" cellpadding="0" background="image/index_lmbg.gif">
        <tr>
		<td align="center">
		</td>
		</tr>
		<tr>
		<td>
	<table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b><a href="hello.jsp">首页</a></b></div>
                </td>
              </tr>
            </table>
		</td>
		</tr>

		<tr> 
          <td height="30">
<table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>
<a href="userlogin.jsp">
<!--Button1-->用户登录</a></b></div>
                </td>
              </tr>
</table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>
<a href="adminlogin.jsp">
管理员登录</a></b></div>
                </td>
              </tr>
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>
<a href="trainquery.jsp">
按车次查询</a></b></div>
                </td>
              </tr>
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>
<a href="addressquery.jsp">
按地点查询</a></b></div>
                </td>
              </tr>
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>

<a href="stationquery.jsp">
按站点查询</a></b></div>
                </td>
              </tr>
            </table>
		
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> 
                  <div align="center"><b>

<a href="userregister.jsp">
<!--Button6-->用户注册</a> </b></div>
                </td>
              </tr>
            </table>   
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              <tr> 
                <td> <div align="center"><b> 
<a href="dizhi.jsp"> 
联系我们</a> </b></div></td>
              </tr>
            </table>
            <table width="250" border="0" cellspacing="0" cellpadding="0" height="40" background="image/index_lm.gif">
              
            </table>
			</td>
          <td width="30" height="30">&nbsp;</td>
        </tr>
        <tr> 
          <td colspan="2"> <img src="image/index_bottom.gif" width="280" height="100"></td>
        </tr>
      </table>
      <p>&nbsp;</p>
    </td>
    <td width="468" valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td>
            <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
         
                
              <tr> 
                <td bgcolor="#000000"><img src="images/Spacer.gif" width="1" height="1"></td>
              </tr>
              <tr> 
                <td> 
                  <div align="right">

				  </div>
                </td>
              </tr>
              
<p align="center"><font color="#000000" size="+2" face="方正舒体">用户注册</font></p>
<p align="center">&nbsp;带（*）的请务必填写</p>
<form  method=post action="registersvlt" name=r onsubmit="return check()">
  <input type="hidden" name="action" value="register">
  <table width="49%" height="50"  border="1" align="center" cellpadding="0" cellspacing="0">
      <br>
    <tr> 
      <td width="48%">登录名(*)</td>
      <td width="52%"><input name="userid" type="text"  id="userid" ></td>
    </tr>
    <tr> 
      <td width="48%">姓名(*)</td>
      <td width="52%"><input name="username" type="text"  id="username" ></td>
    </tr>
    <tr> 
      <td>密码(*)</td>
      <td><input name="password" type="password" id="password" maxlength="10"></td>
    </tr>
    <tr> 
      <td>身份证号(*)</td>
      <td><input name="id" type="text" id="id" maxlength="20"></td>
    </tr>
    <tr> 
      <td>性别</td>
      <td><select name="sex" size="1" id="select">
          <option>男</option>
          <option>女</option>
        </select></td>
    </tr>
	<tr> 
      <td>电子邮箱(*)</td>
      <td><input name="email" type="text" id="email" maxlength="20"></td>
    </tr>
	<tr> 
      <td>联系地址(*)</td>
      <td><input name="address" type="text" id="address" maxlength="20"></td>
    </tr>
	<tr> 
      <td>电话(*)</td>
      <td><input name="phone" type="text" id="phone" maxlength="20"></td>
    </tr>
  </table>
  <p align="center"> 
    <input type="submit" name="Submit" value="提交">
  </p>
</form>
<p>&nbsp;</p>


            </table> 
            <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" class="englishfont" height="1">
              <tr> 
                <td bgcolor="#000000"> </td>
              </tr>
            </table>
            <table width="96%" border="0" cellspacing="0" cellpadding="4" align="bottom">
              <tr> 
                <td> 
                  <div align="center"> 
火车在线订票
 ！
@2020<br>
                      车站地址:湖南省长沙市芙蓉区科教路<br>
                      电话:0731-8888888<br>
                      电子邮件:train@gmail.com
                </td>
              </tr>
            </table>      
		  </td>
        </tr>
      </table>

    </td>
    <td width="30">&nbsp;</td>
  </tr>
</table>
</BODY>
</HTML>

